//
//  LuyongXQController.m
//  Ten
//
//  Created by anfuer on 2018/8/17.
//  Copyright © 2018年 xg韦. All rights reserved.
//

#import "LuyongXQController.h"

@interface LuyongXQController ()
{
    NSDictionary*companyDic;
}
@property (weak, nonatomic) IBOutlet UILabel *lb1;
@property (weak, nonatomic) IBOutlet UILabel *lb2;
@property (weak, nonatomic) IBOutlet UILabel *lb3;
@property (weak, nonatomic) IBOutlet UILabel *lb4;
@property (weak, nonatomic) IBOutlet UILabel *lb5;
@property (weak, nonatomic) IBOutlet UILabel *lb6;
@property (weak, nonatomic) IBOutlet UILabel *lb7;
@property (weak, nonatomic) IBOutlet UILabel *lb8;
@property (weak, nonatomic) IBOutlet UILabel *lb9;
@property (weak, nonatomic) IBOutlet UIImageView *img;
@property (weak, nonatomic) IBOutlet UILabel *lb10;
@property (weak, nonatomic) IBOutlet UILabel *lb11;

@end

@implementation LuyongXQController

- (void)viewDidLoad {
    [super viewDidLoad];
     [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault animated:YES];
    
    [FuncPublic getData:self parameters:@{@"id":_pid} RequestUrl:CSalarydelivers_detail success:^(NSDictionary *acountInfo) {
        NSDictionary*job_detail=acountInfo[@"data"][@"job_detail"];
        _lb1.text=WXGStr(job_detail[@"title"]);
        _lb2.text= [NSString stringWithFormat:@"【%@】",acountInfo[@"data"][@"status_name"]];
         _lb3.text=[NSString stringWithFormat:@"￥%@/%@",job_detail[@"salary"],[WXGStr(job_detail[@"salary_type"])isEqualToString:@"2"]?@"月":@"日"];
         _lb4.text=WXGStr(job_detail[@"city_area_name"]);
         _lb5.text= [NSString stringWithFormat:@"经验:%@",job_detail[@"work_year"]];
         _lb6.text=WXGStr(job_detail[@"education"]);
         _lb7.text= [NSString stringWithFormat:@"%@",acountInfo[@"data"][@"employ_time"]];
        _lb8.text=WXGStr(job_detail[@"city_area_name"]);
        _lb9.text=WXGStr(job_detail[@"address"]);
        companyDic=acountInfo[@"data"][@"company"];
         _lb10.text=WXGStr(companyDic[@"name"]);
         _lb11.text=WXGStr(job_detail[@"city_area_name"]);
        [_img sd_setImageWithURL:[companyDic[@"logo"]formatUrl]];
        
    }];

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (IBAction)companyBtna:(UIButton *)sender {
    [MyUtils collviewSelidex:@"公司详情" toVc:self andShopInfo:companyDic];
}


//tag==0删除  ==1 评价
- (IBAction)boomBtna:(UIButton *)sender {
    
    
}





@end
